<?php if(!empty($subvo)){
    $v = $subvo;
    $subvo = '';
}
if(!empty($subsubvo)){
    $v = $subsubvo;
    $subsubvo = ''; 
}
?>

<div class="viewBox myBox<?php echo $v['id'];?>" <?php if($_SESSION[C('USER_AUTH_KEY')]){?> sortID="<?php echo $v['sort'];?>" modulesID="<?php echo $v['id'];?>" title="<?php echo $v['title'];?>" deleteUrl="<?php echo U('/Admin/Modules/delete',array('id'=>$v['id']));?>" settingUrl="<?php echo U('/Admin/Modules/edit',array('id'=>$v['id']));?>" isEdit="0"<?php }?>>
  <?php if(!empty($v['dataname'])){
                $v['content'] = $v['dataname'];
                
        }else{
            $v['content'] = unserialize($v['content']);
        }
         ?>
  <div class="panel panel-primary">
    <?php include(TMPL_PATH.'Home/TemplateDefault/Public-Moduletitle'.C('TMPL_TEMPLATE_SUFFIX')); ?>
    <div class="panel-body">

      
      
      
      
      
      <?php foreach($v['content'] as $key => $p):?>
      
      <div class="accordion-group">
              <div class="accordion-heading">
                <a class="accordion-toggle" <?php if($key == 0){?>style="border-top:none;"<?php }?> data-toggle="collapse" data-parent="#accordion2" href="#collapseOne<?php echo $p['id'];?>">
                  <?php echo cut_str($p['title'],$v['listTitleLength'],0);?>
                  
                  
                  <i class="fa fa-angle-right" style="float:right;"></i>
                </a>
              </div>
              <div id="collapseOne<?php echo $p['id'];?>" class="accordion-body collapse" style="height: 0px; ">
                <div class="accordion-inner">
                   <?php echo getMultiProductCateTree($p['id'],'trees'); ?>
                </div>
              </div>
            </div>
      
      <?php endforeach; ?>
      
      
      
      
      <div class="clearfix"></div>
    </div>
  </div>
</div>